﻿/*
* FilePathProvider.cpp
*
* 数据基类
*
* create date: 2014.4.18
* create by: leo
*
*/

#include "FilePathProvider.h"

USING_NS_CC;

//
CFilePathProvider& CFilePathProvider::getInstance()
{
	static CFilePathProvider instance;
	return instance;
}

bool CFilePathProvider::initWithFile(const char* filePath)
{
	return true;
}

cocos2d::CCString CFilePathProvider::getFilePath(const char* path)
{
	CCString* realPath = (CCString*)mPathDict.objectForKey(path);
	if (NULL != realPath)
	{
		return *realPath;
	}
	return *CCString::create(path);
}

CFilePathProvider::CFilePathProvider()
{}

CFilePathProvider::~CFilePathProvider()
{}
